package com.bean;


public class DailyNutrition {

private int id;
private int uid;
private String nutrition;

public String getNutrition() {
	return nutrition;
}
public void setNutrition(String nutrition) {
	this.nutrition = nutrition;
}
public int getId() {
	return id;
}
public void setId(int id) {
	this.id = id;
}
public int getUid() {
	return uid;
}
public void setUid(int uid) {
	this.uid = uid;
}


//public Composition getComposition() {
//	if(nutrition==null)
//		return null;
//	String []sts=nutrition.split(",");
//	Composition com=null;
//	try{
//		com=new Composition(-1,"我的需求",Double.parseDouble(sts[0]),Double.parseDouble(sts[1]),Double.parseDouble(sts[2]),
//				Double.parseDouble(sts[3]),Double.parseDouble(sts[4]),Double.parseDouble(sts[5]),
//				Double.parseDouble(sts[6]),Double.parseDouble(sts[7]),Double.parseDouble(sts[8]),Double.parseDouble(sts[9]),
//				Double.parseDouble(sts[10]),Double.parseDouble(sts[11]));
//	}catch(Exception pe){
//		System.err.println("信息来源错误!");
//	}
//	return com;
//}
//public void setComposition(Composition com) {
//	this.nutrition=com.getEnergy()+","+com.getProtein()+","+com.getFat()+","+com.getSugar()+","+com.getCa()
//	+","+com.getFe()+","+com.getVA()+","+com.getVB1()+","+com.getVB2()+","+com.getVC()+","+com.getVD()+","+com.getVE();
//}

}
